﻿<%@ Page Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="login.aspx.cs"
    Inherits="Com.CMS263.Web.login" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <uc2:uc_event ID="uc_event1" runat="server" />

    <script language="javascript" type="text/javascript">
        function showRgCode() {
            $('#rgChkImg').attr("src", "/ValidateCode.aspx?" + Math.random(1000));
            $("#rgChkImg").show();
        }
        $(function() {
            showRgCode();
        })
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--主体-->
    <div class="child_main">
        <div class="child_left">
            <div class="left_top">
                会员中心</div>
            <ul>
                <li><a href="login.aspx" class="hover" id="about2">会员登录</a></li>
                <li><a href="register.aspx" id="about3">会员注册</a></li>
                <li><a href="findpsd.aspx" id="about4">找回密码</a></li>
                <li><a href="modify.aspx" id="about5">修改密码</a></li>
            </ul>
            <div class="left_bot">
            </div>
        </div>
        <div class="child_right">
            <div class="right_tit">
                <strong>会员登录</strong><span>您当前的位置：<a href="index.aspx">首页</a> &gt; <a href="login.aspx">
                    会员中心</a> &gt; 会员登录</span></div>
            <div class="right_cont">
                <div class="logintab marcen">

                    <script language="javascript" type="text/javascript">
                        function message_OnSubmit() {
                            var err = 0;
                            var Uname = get("User_Name").value;
                            if (Uname.length < 1) { get("ReqUname").innerHTML = "*请输入账号"; err = err + 1; } else { get("ReqUname").innerHTML = "*" } var ValidCode = get("ValidCode").value;
                            if (ValidCode.length < 1) { get("ReqValidCode").innerHTML = "*请输入验证码"; err = err + 1; } else { get("ReqValidCode").innerHTML = "*" }
                            var Password1 = get("User_Password").value;
                            if (Password1.length < 1) { get("ReqPassword1").innerHTML = "*请输入密码"; err = err + 1; } else { get("ReqPassword1").innerHTML = "*" }
                            if (err > 0) { return false; }
                        }
                    </script>

                    <form runat="server" name="messageForm" method="post" action="" onsubmit="javascript:return message_OnSubmit(this);"
                    id="messageForm">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="right">
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td height="35" colspan="2" align="left" class="line24">
                                尊敬的用户你好，请您认真填写注册信息，以便于我们更好的为您服务。<br />
                                带“<span class="cored">*</span>”的为必填项目
                            </td>
                        </tr>
                        <tr>
                            <td width="8%" height="35" align="right">
                                帐 号：
                            </td>
                            <td width="92%" height="35" align="left">
                                <asp:TextBox ID="User_Name" runat="server" CssClass="userkk"></asp:TextBox>
                                <span class="cored">* </span>注册用户名长度限制为6－12位。
                            </td>
                        </tr>
                        <tr>
                            <td height="35" align="right">
                                密 码：
                            </td>
                            <td height="35" align="left">
                                <asp:TextBox ID="User_Password" runat="server" TextMode="Password" CssClass="userkk"></asp:TextBox>
                                <span class="cored">*</span> 密码长度限制为6－12位。
                            </td>
                        </tr>
                        <tr>
                            <td height="35" align="right">
                                验 证 码：
                            </td>
                            <td height="35" align="left">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td width="19%" height="30">
                                            <input id="ValidCode" name="ValidCode" type="text" class="userkk" style="width: 123px;" />
                                        </td>
                                        <td width="81%" height="30">
                                            <img id="rgChkImg" src="/ValidateCode.aspx" onclick="this.src='/ValidateCode.aspx?code=1' + Math.random();"
                                                title="点击刷新验证码" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td height="70" align="right" class="dashedup">
                            </td>
                            <td height="70" align="left" class="dashedup">
                                <asp:Button ID="Button1" CssClass='dashedup" ' runat="server" Text=" 登 录 " OnClick="Button1_Click" />
                                <asp:Button ID="Button2" CssClass='dashedup" ' runat="server" Text=" 注 册 " 
                                    onclick="Button2_Click"/>
                            </td>
                        </tr>
                        <tr>
                            <td height="35" align="right">
                            </td>
                            <td height="35" align="left">
                            </td>
                        </tr>
                    </table>
                    </form>
                </div>
            </div>
            <div class="right_bot">
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <!--结束				主体-->
</asp:Content>
